package com.kafka.demo.config.yml;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.LinkedHashMap;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "kafka-producers")
@Data
public class MultiKafkaProducerProperties {

    private  Map<String, KafkaProducerProperties> service = new LinkedHashMap<>();

}